package com.yuwenchao.superafflatus.service.impl;

import com.yuwenchao.superafflatus.pojo.entity.SuperLoginUser;
import com.yuwenchao.superafflatus.mapper.SuperLoginUserMapper;
import com.yuwenchao.superafflatus.service.SuperLoginUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ChaooGG
 * @since 2021-05-31
 */
@Service
public class SuperLoginUserServiceImpl extends ServiceImpl<SuperLoginUserMapper, SuperLoginUser> implements SuperLoginUserService {

    @Autowired
    SuperLoginUserMapper superLoginUserMapper;

    @Override
    public List<Integer> getRoleUserId() {

        List<Integer> roleUserIdList =  superLoginUserMapper.getRoleUserId();

        return roleUserIdList;
    }

    @Override
    public void setPasswordById(Integer id, String password) {
        superLoginUserMapper.setPasswordById(id,password);
    }
}
